home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / strategy / xpuzzles.3 / xpuzzles / xpuzzles-5.3.1 / xskewb / Imakefile next >
Makefile  |  1996-02-05  |  3KB  |  80 lines

  1. #ifndef XCOMM
  2. #define XCOMM /**/#
  3. #endif
  4. XCOMM X-BASED SKEWB
  5. XCOMM
  6. XCOMM    Imakefile
  7. XCOMM
  8. XCOMM ##
  9. XCOMM
  10. XCOMM Copyright (c) 1994 - 96     David Albert Bagley, bagleyd@hertz.njit.edu
  11. XCOMM
  12. XCOMM            All Rights Reserved
  13. XCOMM
  14. XCOMM Permission to use, copy, modify, and distribute this software and
  15. XCOMM its documentation for any purpose and without fee is hereby granted,
  16. XCOMM provided that the above copyright notice appear in all copies and
  17. XCOMM that both that copyright notice and this permission notice appear in
  18. XCOMM supporting documentation, and that the name of the author not be
  19. XCOMM used in advertising or publicity pertaining to distribution of the
  20. XCOMM software without specific, written prior permission.
  21. XCOMM
  22. XCOMM This program is distributed in the hope that it will be "playable",
  23. XCOMM but WITHOUT ANY WARRANTY; without even the implied warranty of
  24. XCOMM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  25. XCOMM
  26.  
  27. XCOMM      *** BEGIN XM CONFIG SECTION ***
  28.  
  29. XCOMM If your system has libXm (Motif), remove the 'XCOMM ' from the next line.
  30. XCOMM #define XmLibrary
  31.  
  32. #ifdef XmLibrary
  33.           XMDEF = -DHAS_XM
  34.             PRE = xm
  35.  
  36. XCOMM Below is a guess of the location of the Motif include directory.
  37.           XMINC = -I/usr/local/include
  38.  
  39. XCOMM If you get an error "Connot find libXm" while linking, set XMLIBPATH
  40. XCOMM to the directory libXpm.* is in.  Below is a guess.
  41.           XMLIB = -L/usr/local/lib -lXm
  42. #else
  43.             PRE = x
  44. #endif
  45.  
  46. XCOMM      *** END XM CONFIG SECTION ***
  47.  
  48. XCOMM Set your C compiler if necessary
  49. XCOMM CC        = gcc -g -DDEBUG -Wall
  50. XCOMM CC        = gcc -O
  51.  
  52. wIDGET        = skewb
  53. WIDGET        = Skewb
  54. WIDGET2        = ${WIDGET}2d
  55. WIDGET3        = ${WIDGET}3d
  56.  
  57. SCOREFILE    = ./${wIDGET}.scores
  58. DATAFILE    = ./${wIDGET}.data
  59.  
  60. DEFINES        = ${XMDEF}\
  61.     -DSCOREFILE=\"${SCOREFILE}\" -DDATAFILE=\"${DATAFILE}\"\
  62.     ${XMINC}
  63. LOCAL_LIBRARIES    = ${XMLIB} ${XTOOLLIB} ${XLIB}
  64. SRCS        = rngs.c ${WIDGET}.c ${WIDGET}U.c\
  65.         ${WIDGET2}.c ${WIDGET3}.c ${PRE}${wIDGET}.c
  66. OBJS        = rngs.o ${WIDGET}.o ${WIDGET}U.o\
  67.         ${WIDGET2}.o ${WIDGET3}.o ${PRE}${wIDGET}.o
  68. PROGRAMS    = ${PRE}${wIDGET}
  69.  
  70. ComplexProgramTarget(${PROGRAMS})
  71.  
  72. ${WIDGET}.o: ${WIDGET}.c ${WIDGET}P.h ${WIDGET2}P.h ${WIDGET3}P.h ${WIDGET}.h
  73. ${WIDGET}U.o: ${WIDGET}U.c ${WIDGET}P.h ${WIDGET2}P.h ${WIDGET3}P.h ${WIDGET}.h
  74. ${WIDGET2}.o: ${WIDGET2}.c ${WIDGET}P.h ${WIDGET}.h ${WIDGET2}P.h ${WIDGET2}.h
  75. ${WIDGET3}.o: ${WIDGET3}.c ${WIDGET}P.h ${WIDGET}.h ${WIDGET3}P.h ${WIDGET3}.h
  76. ${PRE}${wIDGET}.o: ${PRE}${wIDGET}.c ${WIDGET}.h ${WIDGET2}.h ${WIDGET3}.h
  77.  
  78. clean.all::    clean
  79.     ${RM} Makefile
  80.